package Cafezam;

public class J13Ex46CalendarV1 {

	public static void main(String[] args) {
		int cyear=2003;
		int what=1;
		String result;
		what=(365*cyear +cyear/4 -cyear/100 + cyear/400)%7;
		switch(what)
		{case 1:
			result="월요일";break;
		case 2:
			result="화요일"; break;
		case 3:
			result="수요일"; break;
		case 4:
			result="목요일"; break;
		case 5:
			result="금요일"; break;
		case 6:
			result="토요일"; break;
		
					default:
						result="일요일";
		}
		System.out.println(cyear+"년 1월 1일의 요일은"+result);

	}

}
